package com.guangzi.service.impl;

import com.guangzi.entity.Sway;
import com.guangzi.mapper.SwayDao;
import com.guangzi.service.AbstractService;
import com.guangzi.service.SwayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class SwaySeriveImpl extends AbstractService implements SwayService {
    private SwayDao swayDAO;

    @Autowired
    public void setSwayService(SwayDao swayDAO) {
        super.setBaseDAO(swayDAO);
        this.swayDAO = swayDAO;
    }

    @Override
    public void updateState(Sway sway) {
        swayDAO.updateState(sway);
    }
}
